<template>
  <div id="app">
    <!--加载动画遮盖层-->
    <loading-gif v-show="this.$store.getters.toggleLoadingGif"></loading-gif>

    <div id="main">
      <keep-alive>
        <router-view v-if="$route.meta.keepAlive"/>
      </keep-alive>

      <router-view v-if="!$route.meta.keepAlive"/>
    </div>
  </div>
</template>

<script>
  import LoadingGif from "./components/common/loading-gif";

  export default {
    name: 'App',
    components: {LoadingGif}
  }
</script>

<style lang="scss">
  @import "./style/index.scss";
</style>
